


#if !defined( __WXXAXISWINDOW_H__ )
#define __WXXAXISWINDOW_H__



#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "xaxiswindow.h"
#endif

#include <wx/window.h>

#include "wx/xaxis.h"


class wxChartSizes;


const int XAXIS_WIDTH	= 30;
const int XAXIS_HEIGHT	= 60;



class WXDLLIMPEXP_CHART wxXAxisWindow : public wxWindow

{
public:
	wxXAxisWindow() {};
	wxXAxisWindow(wxScrolledWindow *parent);



	void SetVirtualMax(ChartValue v);
	void SetVirtualMin(ChartValue v);
	ChartValue GetVirtualMax() const;
	ChartValue GetVirtualMin() const;



	void SetZoom(double z);
	double GetZoom();
	void SetSizes(wxChartSizes *sizes);
	const wxChartSizes* GetSizes() const;



	void Draw(CHART_HPAINT hp, int x = 0, int y = 0);

private:
	wxXAxis m_XAxis;
	wxScrolledWindow *m_WinParent;



    void OnPaint(wxPaintEvent &event);
    void OnMouse(wxMouseEvent &event);


    DECLARE_DYNAMIC_CLASS(wxXAxisWindow)

    DECLARE_EVENT_TABLE()
};

#endif // __WXXAXISWINDOW_H__
